package com.qingcloud.task.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zhengjibin
 * @version 1.0.0
 * @ClassName TaskInfoVO.java
 * @Description
 * @createTime 2022年01月21日 10:41:00
 */
@Data
public class TaskInfoVO {


    @ApiModelProperty(value = "主键ID")
    private Long taskId;

    @ApiModelProperty(value = "任务编号")
    private String taskCode;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "数据来源：1=污染源，2=水环境综合治理")
    private Integer source;

    @ApiModelProperty(value = "来源数据id")
    private List<Long> sourceIds;

    @ApiModelProperty(value = "任务类型：1=报警，2=日常巡查，3=整治行动")
    private Integer type;

    @ApiModelProperty(value = "完成状态(0:未开始，1：进行中，2：已完成)",example = "0")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "0=pc创建，1=app创建")
    private Integer createType;

    @ApiModelProperty(value = "创建任务描述")
    private String remarks;

    @ApiModelProperty(value = "任务结果描述")
    private String remarksResult;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime finishedTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

}
